package com.jt.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jt.pojo.Dept;
import com.jt.pojo.DeptUser;
import com.jt.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DeptMapper extends BaseMapper<Dept> {

    List<User> getUserListByDeptId();

    Boolean insertUserList(List<DeptUser> deptUserList);

    List<DeptUser> selectBeforeDeptUserList(String deptId);

    boolean removeUser(@Param("deptUser") DeptUser deptUser);
}
